//
//  Common.h
//  MyShoes
//
//  Created by mac on 11-6-20.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

@interface Common : NSObject {

}
+(void)iToast:(NSString *)msg;
+ (NSString *)intervalSinceNow: (NSDate *) d ;
+(CGFloat)dateBetweenNow:(NSString *)is_date;
+(UIImage *)getImage:(NSString *)imageName;
+(NSString *)formartDayString:(CGFloat)day;
+(NSString *)getDateString:(NSString *)beginDate addDay:(int)addDay;

+(NSString *)getImagePath:(NSString *)xpath;
+(NSString *)getDataPath:(NSString *)xpath;
+(NSArray *)loadDirList:(NSString *)xpath;
+(NSArray *)loadFileList:(NSString *)xpath;
+(NSArray *)loadNode:(NSString *)xpath isDir:(BOOL)isDir;

//+(id)parseJsonDataWithUrl:(NSString *)url;
//+(id)parseJsonData:(NSData *)jsonData;

+(ASIHTTPRequest *)createHTTPRequest:(NSString *)url delegate:(id<ASIHTTPRequestDelegate>)delegate;

@end
